import Vue from "vue";
import Axios from "axios";
// import $store from "../store";
// import { Message } from "element-ui";

const http = Axios.create({
  method: "post",
  baseURL: `${location.origin}/mos/api`,
  timeout: 5000,
  headers: {
    "Content-Type": "application/json;charset=UTF-8"
  }
});

Vue.prototype.$axios = http;
export default http;
